package com.fc.services.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.fc.dao.FoodDao;
import com.fc.entities.Food;
import com.fc.services.FoodService;

/**
 * 
 * @author Ács Ádám
 *
 */
@Transactional
@Service("foodService")
public class FoodServiceImpl implements FoodService, Serializable {
	@Autowired
	private FoodDao foodDao;
	
	@Override
	public List<Food> findAll() {
		return foodDao.findAll();
	}

	public FoodServiceImpl() {
		super();
	}
}
